/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseBusiness;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2023-05-05
**/
@Entity
@Data
@Table(name="BIS_ZHSQ_TZDYRQ")
public class ZhsqTzdyrq extends BaseBusiness implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "BIS_ZHSQ_TZDYRQ_ID")
    @ApiModelProperty(value = "主键")
    private String bisZhsqTzdyrqId;

    @Column(name = "BIS_ZHSQ_ID")
    @ApiModelProperty(value = "照护ID")
    private Long bisZhsqId;

    @Temporal(TemporalType.DATE)
    @Column(name = "BIS_ZHSQ_RQ")
    @ApiModelProperty(value = "更改日期")
    private Date bisZhsqRq;

    @Column(name = "BIS_ZHSQ_YY")
    @ApiModelProperty(value = "更改原因")
    private String bisZhsqYy;

    @Column(name = "BIS_ZHSQ_SHR")
    @ApiModelProperty(value = "审核人")
    private String bisZhsqShr;

    @Column(name = "BIS_ZHSQ_SHSJ")
    @ApiModelProperty(value = "审核时间")
    private Date bisZhsqShsj;

    @Column(name = "BIS_ZHSQ_SHJG")
    @ApiModelProperty(value = "审核结果")
    private String bisZhsqShjg;

    @Column(name = "BIS_ZHSQ_XM")
    @ApiModelProperty(value = "姓名")
    private String bisZhsqXm;

    @Column(name = "BIS_ZHSQ_SFZ")
    @ApiModelProperty(value = "身份证")
    private String bisZhsqSfz;

    @Column(name = "BIS_ZHSQ_JGBM")
    @ApiModelProperty(value = "机构编码")
    private String bisZhsqJgbm;

    @Column(name = "BIS_ZHSQ_JGMC")
    @ApiModelProperty(value = "机构名称")
    private String bisZhsqJgmc;

    @Column(name = "BIS_ZHSQ_SBID")
    @ApiModelProperty(value = "商保公司ID")
    private String bisZhsqSbid;

    @Column(name = "BIS_ZHSQ_SBMC")
    @ApiModelProperty(value = "商保公司名称")
    private String bisZhsqSbmc;

    @Column(name = "BIS_ZHSQ_YBSSQX")
    @ApiModelProperty(value = "统筹区")
    private String bisZhsqYbssqx;


    public void copy(ZhsqTzdyrq source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}